package com.mac.hosp_pre.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mac.hosp_pre.base.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单
 *
 * @author mac
 */
@Data
@TableName("order_info")
public class OrderInfo extends BaseEntity {
	
	private static final long serialVersionUID = 1L;

	@TableId
	private Long id;

	@TableField("user_id")
	private Long userId;

	/**
	 * 订单交易号
	 */
	@TableField("out_trade_no")
	private String outTradeNo;

	private String hospCode;

	private String hospName;

	private String deptCode;

	private String deptName;

	/**
	 * 医生名称
	 */
	private String doctName;

	@TableField("schedule_id")
	private String scheduleId;

	@TableField("title")
	private String title;

	@TableField("reserve_date")
	private Date reserveDate;

	@TableField("reserve_time")
	private Integer reserveTime;

	@TableField("patient_id")
	private Long patientId;

	@TableField("patient_name")
	private String patientName;

	@TableField("patient_phone")
	private String patientPhone;

	@TableField("hos_record_id")
	private String hosRecordId;

	@TableField("number")
	private Integer number;

	@TableField("fetch_time")
	private String fetchTime;

	@TableField("fetch_address")
	private String fetchAddress;

	@TableField("amount")
	private BigDecimal amount;

	@TableField("quit_time")
	private Date quitTime;

	@TableField("order_status")
	private Integer orderStatus;

}

